# -*- coding: utf-8 -*- 
"""
========================================================================================================================
@project : myrestframework
@file: O2OAError
@Author: mengying
@email: 652044581@qq.com
@date: 2022/11/16 14:19
@desc: O2OA的错误处理
========================================================================================================================
"""
from utils.myLog import SeqLog

# 配置日志
seqLog = SeqLog().get_logger()


class O2OAError(BaseException):

    def __init__(self, message):
        self.message = message
        self.log_record()
        self.error_handler()

    def log_record(self):
        seqLog.error(str(self.message))

    def error_handler(self):
        pass
